package com.mdb.open.epay.service.epay;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mdb.bc.database.mybatisplus.SuperService;
import com.mdb.open.epay.common.MdbDataSource;
import com.mdb.open.epay.domain.po.epay.QpCustConfig;
import com.mdb.open.epay.mapper.epay.QpCustConfigMapper;
import org.springframework.stereotype.Service;

/**
 * 类描述：
 *  快捷产品客户配置 服务类
 *
 * @author liuyi
 * @date 2019-11-14
 */
@Service
@DS(MdbDataSource.EPAY)
public class QpCustConfigService extends SuperService<QpCustConfigMapper, QpCustConfig> {

    public QpCustConfig get(String customerCode) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<QpCustConfig>()
                .eq(QpCustConfig::getCustomerCode, customerCode));
    }
}
